<template>
  <div style="background-color: #f5f7fa">
    <header class="header">
      <div class="header-container">
        <h1 class="logo">ipss课题组-杨晓楠</h1>
        <div class="login-btn-container">
          <button id="loginBtn" class="login-btn" @click="goBack">
            返回上一页
          </button>
        </div>
      </div>
    </header>
    <div class="page-wrap">
      <!-- 头部信息卡片 -->
      <el-card class="hero" shadow="hover">
        <div class="hero-inner">
          <el-avatar :size="120" :src="avatar" @error="() => true" />
          <div class="hero-text">
            <div class="name-row">
              <h1 class="name">杨晓楠</h1>
              <el-tag type="success" round>长聘副教授 / 研究员</el-tag>
              <el-tag type="primary" round v-if="isPhDAdvisor">博导</el-tag>
              <el-tag round v-if="isMasterAdvisor">硕导</el-tag>
            </div>
            <div class="subline">机械与车辆学院 · 工业工程专业</div>
          </div>
        </div>

        <el-divider />

        <!-- 基本信息 -->
        <el-descriptions :column="3" border size="large" class="basic">
          <el-descriptions-item label="办公地址">
            中关村校区第一教学楼 343
          </el-descriptions-item>
          <el-descriptions-item label="邮编">100081</el-descriptions-item>
          <el-descriptions-item label="邮箱">
            <el-link :href="`mailto:${email}`" type="primary">{{
              email
            }}</el-link>
          </el-descriptions-item>
        </el-descriptions>

        <el-alert
          title="教育经历"
          type="info"
          :closable="false"
          class="section-title"
        />
        <div class="edu-list">
          <ul>
            <li v-for="(e, i) in education" :key="i">
              {{ e.period }} {{ e.degree }} {{ e.institution }}
            </li>
          </ul>
        </div>

        <el-alert
          title="个人简介 / 研究方向"
          type="info"
          :closable="false"
          class="section-title"
        />
        <div class="intro">
          <p v-for="(line, i) in introParagraphs" :key="i">{{ line }}</p>
          <el-divider />
          <strong>研究方向：</strong> {{ researchTags.join("，") }}
          <br />
          <strong>招收方向：</strong> {{ recruitText }}
        </div>
      </el-card>

      <!-- 论文 / 项目 / 成果 / 职务 等 -->
      <el-card class="content-card" shadow="never">
        <el-tabs tab-position="top" class="tabs">
          <el-tab-pane label="代表性论文">
            <el-timeline>
              <el-timeline-item
                v-for="(p, i) in papers"
                :key="i"
                :timestamp="p.year"
                placement="top"
              >
                <div class="item-title">{{ p.citation }}</div>
                <div v-if="p.note" class="item-sub">{{ p.note }}</div>
              </el-timeline-item>
            </el-timeline>
          </el-tab-pane>

          <el-tab-pane label="代表性科研项目">
            <el-timeline>
              <el-timeline-item
                v-for="(pr, i) in projects"
                :key="i"
                :timestamp="pr.period"
                placement="top"
              >
                <div class="item-title">{{ pr.title }}</div>
                <div class="item-sub">{{ pr.extra }}</div>
              </el-timeline-item>
            </el-timeline>
          </el-tab-pane>

          <el-tab-pane label="成果及荣誉">
            <ul class="award-list">
              <li v-for="(a, i) in awards" :key="i">
                {{ a }}
              </li>
            </ul>
          </el-tab-pane>

          <el-tab-pane label="社会职务">
            <ul class="service-list">
              <li v-for="(s, i) in services" :key="i">
                {{ s }}
              </li>
            </ul>
          </el-tab-pane>
        </el-tabs>
      </el-card>

      <div class="source">
        数据来源：
        <el-link
          type="primary"
          href="https://me.bit.edu.cn/szdw/jsml/zzgcx/gygcyjs/sssds13/cb9a544621da44adbf2ddd7e539796cb.htm"
          target="_blank"
        >
          北京理工大学 机械与车辆学院 杨晓楠 教师页面
        </el-link>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from "vue";
import { useRouter } from "vue-router";

// 使用 useRoute 获取路由参数
// const route = useRoute();
// const name = route.params.name; // 获取路由参数 name

const router = useRouter();
// 返回上一页
const goBack = () => {
  router.push({
    name: "HomePage",
    query: { tab_active: "members" },
  }); // 返回上一页
};

/** 头像（页面没明确给出照片，使用默认） */
const avatar = ref("/images/yangxiaonan.jpg");

/** 是否具备博士 / 硕士导师资格 **/
const isPhDAdvisor = true;
const isMasterAdvisor = true;

/** 联系方式 **/
const email = "yangxn@bit.edu.cn";

/** 教育经历 **/
const education = [
  {
    period: "2016 — 2019",
    degree: "博士 (工业工程)",
    institution: "美国密苏里大学",
  },
  {
    period: "2014 — 2016",
    degree: "硕士 (工业工程)",
    institution: "美国密苏里大学",
  },
  { period: "2010 — 2014", degree: "学士 (工业工程)", institution: "上海大学" },
];

/** 个人简介段落 **/
const introParagraphs = [
  "杨晓楠，女，北京理工大学机械与车辆学院副教授，博士/硕士生导师，主要研究方向为智能人机交互与人因工程。",
  "作为项目负责人主持科技部重点研发项目课题、国家自然科学基金青年基金、国防基础加强计划及教育部产学合作协同育人等项目。主讲工业工程本科专业核心课程《人因工程学》，参与讲授智能制造工程本科专业核心课程《智能制造系统设计与运行控制》、研究生课程《智能生产与制造服务技术》。",
  "主要从事智能制造、智能驾驶、虚实融合、空间失重等复杂环境下的人机交互与人因工程研究。面向“以人为中心 AI”（human-centered AI, HCAI），重点围绕人在环系统中人的认知与行为特性研究，包括自然人机交互、多模态意图识别、认知负荷、视觉认知机理与视疲劳等方面，形成了颠簸晃动环境下视觉认知与意图形成机理、基于强化学习及启发式的人机协同决策与规划、虚实融合场景智能感知与导引等主要方向。",
  "面向我国载人航天重大工程需求，与人因工程国家重点实验室、中国航天员科研训练中心、航天五院等保持紧密合作，近五年发表领域内高水平 SCI / EI 论文 50 余篇，长期主持并参与举办人因工程领域的重要国际会议（HCII / AHFE / IISE），并在多次学术报告中获奖。",
];

/** 研究方向标签 **/
const researchTags = ["智能人机交互", "人因工程", "智能制造", "智能驾驶"];

/** 招生 / 合作文案 **/
const recruitText =
  "欢迎对智能人机交互及人因工程感兴趣的同学报考，具备机械 / 工业工程 / 数学 / 计算机 / 软件等背景者优先。";

/** 代表性论文 **/
const papers = [
  {
    year: "2023",
    citation:
      "Wanting Mao, Yaoguang Hu, Xiaonan Yang*, Weibo Ren & Haonan Fang (2023) ARE-Platform: An Augmented Reality-Based Ergonomic Evaluation Solution for Smart Manufacturing, International Journal of Human–Computer Interaction.",
    note: "",
  },
  {
    year: "2022",
    citation:
      "Yang, X.*, Kim, J.H. (2022). Pupil and Electromyography (EMG) Responses to Collision Warning in a Real Driving Environment. Human-Computer Interaction. Technological Innovation. HCII 2022. Lecture Notes in Computer Science, vol 13303.",
    note: "",
  },
  {
    year: "2022",
    citation:
      "Wang, J., Hu, Y., Yang, X.* (2022). Multi-person Collaborative Augmented Reality Assembly Process Evaluation System Based on HoloLens. Virtual, Augmented and Mixed Reality: Applications in Education, Aviation and Industry. HCII 2022. Lecture Notes in Computer Science, vol 13318.",
    note: "",
  },
  {
    year: "2022",
    citation:
      "Mao, W., Hu, Y., Yang, X.*, Wang, J. (2022). A Multi-person Collaborative Workshop RULA Verification Method Based on Augmented Reality. HCII 2022. Communications in Computer and Information Science, vol 1583.",
    note: "",
  },
  {
    year: "2020",
    citation:
      "Kim, J.H. & Yang, X. (2020). Measuring Driver’s Perceived Workload Using Fractal Dimension of Pupil Dilation. Proceedings of the Human Factors and Ergonomics Society Annual Meeting, 64(1), 1620–1624.",
    note: "",
  },
  {
    year: "2019",
    citation:
      "Yang, X. & Kim, J.H. (2019). Assessing situation awareness in multitasking supervisory control using success rate of self-terminating search. International Journal of Industrial Ergonomics, 72, 354-362.",
    note: "",
  },
  {
    year: "2019",
    citation:
      "Yang, X., Hyup Kim, J., & Nazareth, R. (2019). Hierarchical Task Analysis for Driving under Divided Attention. Proceedings of the Human Factors and Ergonomics Society Annual Meeting, 63(1), 1744-174.",
    note: "",
  },
  {
    year: "2019",
    citation:
      "Yang, X. & Kim, J.H. (2019, July). Pupillary Response and EMG Predict Upcoming Responses to Collision Avoidance Warning. In International Conference on Applied Human Factors and Ergonomics (pp. 135-143). Springer, Cham.",
    note: "",
  },
  {
    year: "2018",
    citation:
      "Yang, Xiaonan & Kim, J.H. (2018, July). Acceptance and Effectiveness of Collision Avoidance System in Public Transportation. In International Conference of Design, User Experience, and Usability (pp. 424-434). Springer, Cham.",
    note: "",
  },
  {
    year: "2017",
    citation:
      "Kim, J.H. & Yang, X. (2017). Applying fractal analysis to pupil dilation for measuring complexity in a process monitoring task. Applied Ergonomics, 65, 61-69.",
    note: "",
  },
  {
    year: "2017",
    citation:
      "Yang, X. & Kim, J.H. (2017). The effect of visual stimulus on advanced driver assistance systems in a real driving. In IIE Annual Conference Proceedings (pp. 1544-1549).",
    note: "",
  },
];

/** 代表性科研项目 **/
const projects = [
  {
    title: "国家重点研发计划 XXXX 运维服务模式与孪生反馈技术研究",
    period: "2022–2026",
    extra: "",
  },
  {
    title: "国家自然科学基金 增强现实环境下人机协同运维认知负荷评估与均衡方法",
    period: "2022–2025",
    extra: "",
  },
  {
    title: "某技术领域基金 XXXX 眼控交互视觉认知机理与视疲劳避免策略",
    period: "2022–2025",
    extra: "",
  },
  {
    title: "航天五院空间设备人因工程设计与优化方法",
    period: "2022–2024",
    extra: "",
  },
  {
    title: "教育部产学合作协同育人 基于项目制驱动的人因工程实验教学改革",
    period: "2021–2022",
    extra: "",
  },
];

/** 成果与荣誉 **/
const awards = [
  "2019 Raymond White 最佳博士",
  "密苏里大学工程学院杰出博士",
  "北京理工大学第十四届青年教师教学基本功比赛校级二等奖",
];

/** 社会职务 **/
const services = [
  "美国工业与系统工程学会 会员",
  "中国人类工效学学会复杂系统人因与工效学分会 副秘书长",
  "《Applied Ergonomics》《International Journal of Human–Computer Interaction》《Sensors》《International Journal of Industrial Ergonomics》审稿人",
];
</script>

<style scoped>
.page-wrap {
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 50px;
  padding: 24px 16px 60px;
  background: #f5f7fa;
}
.hero {
  border-radius: 16px;
  margin-bottom: 16px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-gap: 20px;
  align-items: center;
}
.hero-text .name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.name {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}
.subline {
  color: #666;
  margin-top: 6px;
}
.basic {
  margin-top: 12px;
}
.section-title {
  margin-top: 16px;
}
.edu-list ul {
  list-style: disc;
  margin: 8px 0 0 20px;
  padding: 0;
}
.intro {
  margin-top: 12px;
  line-height: 1.8;
  color: #333;
}
.content-card {
  border-radius: 16px;
  margin-top: 16px;
  padding: 8px 8px 16px;
}
.tabs :deep(.el-tabs__item) {
  font-size: 15px;
}
.item-title {
  font-weight: 600;
}
.item-sub {
  color: #666;
  margin-top: 4px;
}
.award-list,
.service-list {
  list-style: disc;
  margin: 8px 0 0 20px;
  padding: 0;
  color: #333;
}
.source {
  text-align: right;
  margin-top: 16px;
  color: #666;
  font-size: 13px;
}
@media (max-width: 640px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text .name-row {
    justify-content: center;
  }
}
/* Header */
.header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 32px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1e40af;
}

.login-btn-container {
  display: flex;
  align-items: center;
}

.login-btn {
  background-color: #2563eb;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #1d4ed8;
}
</style>
